//
//  MineTableViewCell.m
//  BlueFilters
//
//  Created by 零零壹 on 2016/11/17.
//  Copyright © 2016年 零零壹. All rights reserved.
//

#import "OneTableViewCell.h"

@implementation OneTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
       
        self.titL = [[UILabel alloc]init];
        self.titL.font = [UIFont systemFontOfSize:15];
        self.titL.textColor = [UIColor grayColor];
        [self.contentView addSubview:self.titL];
        
        self.conL = [[UILabel alloc]init];
        self.conL.font = [UIFont systemFontOfSize:15];
        [self.contentView addSubview:self.conL];
        
        self.BottomlineV = [[UIView alloc]init];
        self.BottomlineV.backgroundColor = UIColors(0xEFEFEF);
        [self.contentView addSubview:self.BottomlineV];
        
    }
    return self;
}

-(void)layoutSubviews
{
    [super layoutSubviews];
    [self.titL mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.contentView.mas_left).offset(10);
        make.centerY.equalTo(self.contentView.mas_centerY);
        make.width.mas_equalTo(70);
    }];
    [self.conL mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.titL.mas_right).offset(10);
        make.centerY.equalTo(self.contentView.mas_centerY);
    }];
    
    [self.BottomlineV mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.contentView.mas_left).offset(10);
        make.right.equalTo(self.contentView.mas_right);
        make.height.mas_equalTo(1);
        make.bottom.equalTo(self.contentView.mas_bottom);
    }];

    
}

@end
